/*
  Name: DeadProxyClientContainer.h
  Copyright:
  Author: Carl Chatfield
  Date: 17/01/08 23:40
  Description: Stores Containers Info
*/


#ifndef __DEADPROXYCLIENTCONTAINER_h__
#define __DEADPROXYCLIENTCONTAINER_h__

#ifdef __BORLANDC__
	#pragma hdrstop
#endif

#ifndef WX_PRECOMP
	#include <wx/wx.h>
#else
	#include <wx/wxprec.h>
#endif

#include "DeadProxyDefinitions.h"

class ContainerManager
{
    private:
        struct Container
        {
            bool IsOpen;
            bool HasParent;
            unsigned short icon;
            char title[32];
            unsigned int MaxSize;
            unsigned int ItemCount;
            Thing Items[36];
        };
        Container Containers[16];
    public:
        void OpenContainer(unsigned int index, unsigned short icon, char * title, unsigned int maxSize, bool HasParent);
        void CloseContainer(unsigned int index);
        void InitAddItem(unsigned int index, Thing * item);
        void AddItem(unsigned int index, Thing * item);
        void RemItem(unsigned int index, unsigned int slot);
        void RepItem(unsigned int index, unsigned int slot, Thing * item);
        ContainerManager();
};
#endif
